﻿using System;
using System.Data;
using System.Web;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;
namespace AnyOffice.general.system.workflow.flow_type
{
    public partial class select_left : ModulePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack)
            {
                int ol = (Request.QueryString["id"] == null) ? 0 : int.Parse(Request.QueryString["id"].ToString());
                this.ViewState["Id"] = ol;
                FlowProcessDao dao = new FlowProcessDao();
                DataTable table = dao.ByDept(base.Conn, ol);
                this.rptDept.DataSource = table;
                this.rptDept.DataBind();
                DataTable table2 = dao.ByPriv(base.Conn, ol);
                this.rptPriv.DataSource = table2;
                this.rptPriv.DataBind();
            }

        }
    }
}
